package com.wudi.estate.service.admin;

import com.github.pagehelper.PageInfo;
import com.wudi.estate.bean.admin.Admin;

import java.util.List;
import java.util.Map;

public interface AdminService {
    Admin selectOneByName(String username) throws Exception ;
    List<Map<String, Object>> selectAllAdminAndRoles() throws Exception;

    void insert1(Admin admin)  throws Exception;


    PageInfo<Map<String, Object>> getPageInfo(int pageNum, int pageSize) throws Exception;

}
